Update event rule - remove something?

Since the API allows partial updates (“Note that the endpoint supports partial updates, so any number of the writable fields can be provided.”), how do I remove something?

EG, I want to use the API to remove a variable, if I just “update” without that variable, it will think I’m just skipping it.

See https://developer.pagerduty.com/api-reference/reference/REST/openapiv3.json/paths/~1rulesets~1{id}~1rules~1{rule_id}/put

A PUT with only the payload needed (removing the payload for what you don’t want anymore) should work.

1 Like